﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
  
  <class name="Neuparts.Ordering.Entities.Customer, Neuparts.Ordering.Entities" table="Customers" lazy="false">
    
    <id name="Id" column="ID">
      <generator class="identity" />
    </id>

    <property name="Name" column="Name" />
    <property name="Company" column="Company" />
    
    <component name="ShipTo" class="Neuparts.Ordering.Entities.Address, Neuparts.Ordering.Entities">
      <property name="Street1" column="ShipToStreet1" />
      <property name="Street2" column="ShipToStreet2" />
      <property name="City" column="ShipToCity" />
      <property name="State" column="ShipToState" />
      <property name="ZIP" column="ShipToZIP" />
    </component>

    <component name="BillTo" class="Neuparts.Ordering.Entities.Address, Neuparts.Ordering.Entities">
      <property name="Street1" column="BillToStreet1" />
      <property name="Street2" column="BillToStreet2" />
      <property name="City" column="BillToCity" />
      <property name="State" column="BillToState" />
      <property name="ZIP" column="BillToZIP" />
    </component>
  </class>
  
</hibernate-mapping>
